package demo.thread;

/**
 * @author small瑞
 */
public class ThreadTest01 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            for(int i = 0 ; i < 10 ; i ++){
                System.out.println(Thread.currentThread().getName()+":"+i);
            }
        },"狮鹫号");
        MyThread myThread = new MyThread("天才号");
        myThread.start();
        thread.start();
    }
}
